package com.mia.props.events;

import com.mia.craftstudio.minecraft.CraftStudioModelWrapper;
import com.mia.craftstudio.minecraft.ModelMetadata;
import com.mia.props.Props;
import com.mia.props.network.NetworkHelper;
import java.util.ArrayList;
import java.util.Iterator;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraftforge.common.DimensionManager;

public class CommonProxy {
   public void setupModelWrappers() {
      ArrayList models = new ArrayList(Props.modelData.values());
      if (Props.itemTool.modelMeta != null) {
         models.add(Props.itemTool.modelMeta);
      }

      Iterator var2 = models.iterator();

      while(var2.hasNext()) {
         ModelMetadata modelData = (ModelMetadata)var2.next();
         new CraftStudioModelWrapper(modelData);
      }

   }

   public void preInit() {
      NetworkHelper.INSTANCE.ordinal();
   }

   public void init() {
      DecoEventHandler.register();
   }

   public void renderCustomRain(World par1World, double par2, double par4, double par6, float size) {
   }

   public TileEntity getTileEntity(int dim, int x, int y, int z) {
      return DimensionManager.getWorld(dim).getTileEntity(x, y, z);
   }

   public void runningTEStateUpdate(int dim, int x, int y, int z, boolean state) {
   }
}
